package study.designpattern.state;

public class StateContext {
    private Statelike myState;
    /**
     * Standard constructor
     */
    public StateContext() {
        setState(new StateA());
    }
    public void setState(Statelike myState) {
        this.myState = myState;
    }
    
    /**
     * Writer method
     * @param NAME
     */
    public void writeName(final String NAME) {
        myState.writeName(this, NAME);
    }
}
